from django.urls import path

from problem.views import *

app_name = 'problem'

urlpatterns = [
    path('problemlist', GetProblemListAPIView.as_view(), name = 'problemlist'),
    path('tags', GetTagsAPIView.as_view(), name = 'tags'),
    path('<str:title_en>/description', GetProblemDescriptionAPIView.as_view(), name = 'problemdescription'),
    path('<int:problem_id>/commentlist', GetCommentListAPIView.as_view(), name = 'commentlist'),
    path('addcomment', AddCommentAPIView.as_view(), name = 'addcomment'),
    path('<int:problem_id>/submitrecord', GetSubmissionListAPIView.as_view(), name = 'submitrecord'),
    path('submitdetail/<int:submission_id>', GetSubmissionDetailAPIView.as_view(), name = 'submitdetail'),
    path('submission',GetSubmission.as_view(),name="submission")
]
